package com.letv.whatslive.web.service.video;

import com.alibaba.dubbo.config.annotation.Reference;
import com.le.luffi.media.model.db.Pagination;
import com.le.luffi.media.model.db.Video;
import org.springframework.stereotype.Component;

/**
 * 直播信息操作服务
 * Created by wangjian7 on 2015/7/8.
 */
@Component
public class VideoService {
    @Reference()
    private com.le.luffi.media.microservice.VideoService videoService;

    public Pagination<Video> findAllByParam(String trace, Video video, Long pageNum, Integer pageSize) {
        return videoService.findAllByParam(trace, video, pageNum, pageSize);
    }

    public void dispatch(String trace, Video video) throws Exception {
        videoService.dispatch(trace, video);
    }
}
